package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"week3/client/internal/config"
	"week3/projectsrv/projectsrvclient"
)

type ServiceContext struct {
	Config config.Config
	Rpc    projectsrvclient.Projectsrv
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		Rpc:    projectsrvclient.NewProjectsrv(zrpc.MustNewClient(c.Rpc)),
	}
}
